syms g h k
A=[1 -4 7 g; 0 3 -5 h; -2 5 -9 k];
A(3,:)=A(3,:)+2*A(1,:);
A(3,:)=A(3,:)+A(2,:);
A